package com.desuntech.modules.events
{
	import flash.events.Event;
	
	public class CRUDEvent extends Event
	{
		public static const INSERT:String = 'insert';
		public static const VIEW:String = 'view';
		public static const EDIT:String = 'edit';
		public static const DELETE:String = 'delete';
		
		public var index:int;
		public var table:String;
		public var view:String;
		public var data:Object;
		
		public function CRUDEvent(type:String, table:String, view:String, index:int = -1, data:Object = null, bubbles:Boolean=false, cancelable:Boolean=false)
		{
			this.index = index;
			this.data = data;
			this.table = table;
			this.view = view;
			super(type, bubbles, cancelable);
		}
	}
}